﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CUIT.GraduationProject.ToolBoxSystem.PropertyLib
{
    public partial class PropertyLibForm2 : UserControl
    {
        public PropertyLibForm2()
        {
            InitializeComponent();
        }

        /// <summary>
        ///  加载
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">e</param>
        private void PropertyLib_Load(object sender, EventArgs e)
        {
            Control ctr = new Control();
            ctr.Name = "";
            ctr.Size = new Size(10, 10);
            ctr.Location = new Point(1137, 0);
            ctr.Visible = true;
            ctr.BackColor = "red";
            propertyGrid_Pro.SelectedObject = ctr;
        }

        private void PicProperty_Click(object sender, EventArgs e)
        {

        }

        /// <summary>
        ///  设置大小
        /// </summary>
        /// <param name="size">大小</param>
        public void SetSize(Size size)
        {
            this.Size = size;
        }

        private void Pioneza_Click(object sender, EventArgs e)
        {

        }

        private void CloseButton_Click(object sender, EventArgs e)
        {

        }
    }
}
